
   	$(function  () {
   		var current=0;
   		var count=$(".pics-list li").length-1;
   		var width=$(".pics-list li").width();
   		
   		setInterval(function(){
   		next();
   		},3000)
   		function next () {
   			if(current>=count){
   				current=0;
   			}
   			else
   			{
   				current++;
   			}
   			$(".points-list li").eq(current).addClass("active").siblings().removeClass("active");
   			$(".pics-list").css("left",-1*width*current+"px")
   		}
   		function prev(){
   			if(current<=0){
   				current=count;
   			}
   			else
   			{
   				current--;
   			}
   		$(".points-list li").eq(current).addClass("active").siblings().removeClass("active");
   			$(".pics-list").css("left",-1*width*current+"px")
   		}
   		$(".banner-box .next").click(function  () {
   			next();
   		})
   		$(".banner-box .prev").click(function  () {
   			prev();
   		})
   		
   	})



